<?
/**
 * DEPRECATED
 */
$class_selected = $_POST['c'];

$xml = simplexml_load_file('classes.xml');
$class = NULL;

switch($class_selected) {
	case 'User': 
		$class = $xml->user;
		break;
	case 'Tag':
		$class = $xml->tag;
		break;
	case 'Handler': 
		$class = $xml->handler;
		break;
	case 'Twitter':
		$class = $xml->twitter;
		break;
	case 'Twitwords':
		$class = $xml->twitwords;
		break;
	default: 
		$class = $xml->error;
		break;
}

$attributes = $class->attribute;
$methods = $class->method;

$i = 0;
?><ul><?
foreach($attributes as $attr) {
	$class = ($i%2==0)? 'even' : 'odd';
	$i++;
?>
	<li>
		<span class="attribute"><?echo $attr->name;?></span>: <?echo $attr->description;?>
	</li>
<?
}
?></ul><?

$i = 0;
foreach($methods as $method) {
	$class = ($i%2==0)? 'even' : 'odd';
	$i++;
?>
	<div class="method <?echo $class;?>">
		<p class="interface"><?echo $method->type;?> <?echo $method->return;?> <?echo $method->interface;?></p>
		<p class="description"><?echo $method->description;?></p>
	</div>
<?
}
?>